function getUserInfo(url){
    $.ajax({
        type:"get",
        url:url,
        success:function(result){
            if(result.code==200 && result.data!=null){
                $(".left .card h3").html(result.data.userName);
                $(".left .card a").attr("href",result.data.githubUrl);
            }
        }
    });
}
function logout(){
    $.ajax({
        type:"post",
        url:"/user/logout",
        success:function(result){
            location.href = "blog_login.html";
        }
        
    });
}